@import './base';
@import './layouts';
@import './hive-plus/index';

:root {
  --#{$namespace}-aside-width: 180px;
  --#{$namespace}-aside-width-collapse: 56px;
  --#{$namespace}-font-weight-primary: 600;
  --maia-nav-header-height: 48px;
  --maia-color-main-grey: #f4f7fc;
  --maia-color-grey-base: #dcdfe6;
  --maia-color-grey-2: #eaedf6;
  --maia-color-grey-3: #f2f2f2;
  --maia-color-grey-4: #fafbfe;
  --maia-color-grey5: #f0f0f0;
  --maia-color-grey6: #5b5b5b;
  --maia-mini-space: 8px;
  --maia-base-space: 12px;
  --maia-small-space: 16px;
  --maia-large-space: 20px;

  // 自定义样式
  --maia-menu-text-color: #434c59;
  --maia-menu-active-text-color: var(--#{$namespace}-color-primary);
  --maia-menu-text-color-sub: var(--maia-color-grey-4);
  --maia-menu-horizontal-text-color-sub: var(--#{$namespace}-color-white);
}

html,
body,
#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto hidden;
  font-family: 'Microsoft YaHei';
  font-size: var(--#{$namespace}-font-size-base);
  background-color: var(--maia-color-main-grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

// html,
// body {
//   min-width: 1280px;
// }

// 页面组件默认容器样式
.page-container {
  box-sizing: border-box;
  padding: 16px;
  overflow-x: hidden;
  background-color: var(--#{$namespace}-color-white);
  border-radius: 4px;

  &.no-padding-top {
    padding-top: 0;
  }
}
// 页面组件默认报表容器样式
.page-container__report {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  overflow-x: hidden;
  background-color: var(--#{$namespace}-color-white);
  border-radius: 4px;

  &.no-padding-top {
    padding-top: 0;
  }
}

// 通过css设置节流，防止按钮多次被点击
@keyframes throttle-frames {
  from {
    pointer-events: none;
  }

  to {
    pointer-events: all;
  }
}

.throttle {
  animation: throttle-frames 1s step-end forwards;

  &:active {
    animation: none;
  }
}

// 元素之前间距样式
.mb-12 {
  margin-bottom: 12px;
}

.mt-12 {
  margin-top: 12px;
}

.ml-12 {
  margin-left: 12px;
}

.mr-12 {
  margin-right: 12px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mt-8 {
  margin-top: 8px;
}

.ml-8 {
  margin-left: 8px;
}

.mr-8 {
  margin-right: 8px;
}

.pb-12 {
  padding-bottom: 12px;
}

.pt-12 {
  padding-top: 12px;
}

.pl-12 {
  padding-left: 12px;
}

.pr-12 {
  padding-right: 12px;
}

.pb-8 {
  padding-bottom: 8px;
}

.pt-8 {
  padding-top: 8px;
}

.pl-8 {
  padding-left: 8px;
}

.pr-8 {
  padding-right: 8px;
}

// 提示色
.success {
  color: var(--#{$namespace}-color-success);
}

.warning {
  color: var(--#{$namespace}-color-warning);
}

.danger {
  color: var(--#{$namespace}-color-danger);
}
